package model.app;

import javax.xml.bind.annotation.*;

/**
 * Created with IntelliJ IDEA.
 * Author: Kostika Gorica
 * User: kostika
 * Date: 12/28/12
 * Time: 9:42 AM
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
@XmlRootElement(name = "person")
public class Person {
    private int id;
    @XmlElement(nillable = true)
    private String emri;
    @XmlElement(nillable = true)
    private String mbiemri;
    @XmlElement(nillable = true)
    private String funksioni;
    @XmlTransient
    private String password;
    private int enabled;

    public Person(){
        this(0,"","","","",1);
    }

    public Person(int id, String emri, String mbiemri, String funksioni, String password, int enabled) {
        this.id = id;
        this.emri = emri;
        this.mbiemri = mbiemri;
        this.funksioni = funksioni;
        this.password = password;
        this.enabled = enabled;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEmri() {
        return emri;
    }

    public void setEmri(String emri) {
        this.emri = emri;
    }

    public String getMbiemri() {
        return mbiemri;
    }

    public void setMbiemri(String mbiemri) {
        this.mbiemri = mbiemri;
    }

    public String getFunksioni() {
        return funksioni;
    }

    public void setFunksioni(String funksioni) {
        this.funksioni = funksioni;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getEnabled() {
        return enabled;
    }

    public void setEnabled(int enabled) {
        this.enabled = enabled;
    }
}
